Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayExt Class / TryGetArray Method / TryGetArray<T>(IPdfArray,Int32,T[],Boolean,Boolean,Boolean) Method
The current array.
The index of the value to get.
OUT: The array of T.
Indicates whether to convert a single T value to an array.
Indicates whether to handle IPdfNull as a null reference (Nothing in Visual Basic).
Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if errors occur.

In This Topic
    TryGetArray<T>(IPdfArray,Int32,T[],Boolean,Boolean,Boolean) Method
    In This Topic
    Tries to get the array of T objects at the specified index.
    Syntax
    'Declaration
     
    Public Overloads Shared Function TryGetArray(Of T As IPdfObject)( _
       ByVal array As IPdfArray, _
       ByVal index As System.Integer, _
       ByRef value() As T, _
       ByVal singleToArray As System.Boolean, _
       ByVal allowNulls As System.Boolean, _
       ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetArray<T>( 
       IPdfArray array,
       System.int index,
       out T[] value,
       System.bool singleToArray,
       System.bool allowNulls,
       System.bool addWarning
    )
    where T: IPdfObject

    Parameters

    array
    The current array.
    index
    The index of the value to get.
    value
    OUT: The array of T.
    singleToArray
    Indicates whether to convert a single T value to an array.
    allowNulls
    Indicates whether to handle IPdfNull as a null reference (Nothing in Visual Basic).
    addWarning
    Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if errors occur.

    Type Parameters

    T

    Return Value

    Returns true if no errors occur.
    See Also